<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		function createCar(certificate,price,ins){
        var car=new Object();
        car.certificate=certificate;
        car.price=price;
        car.ins=ins;
        car.show=function(){
            return this.certificate+this.price+this.ins
        }
        return car;
    }
    var car1=createCar("合格证","20万","大众");
    var car2=createCar("合格证","50万","奥迪");
    alert(car1.show())
    alert(car2.show())
	</script>
</html>
